using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Ent.Web.Helper;
/// <summary>
/// Summary description for basic
/// </summary>
public partial class Skin_basic : System.Web.UI.MasterPage
{
    public Skin_basic()
    {
        this.PreRender += new EventHandler(Skin_basic_PreRender);
    }

    void Skin_basic_PreRender(object sender, EventArgs e)
    {
        if (this.Page.Title.Trim() == "")
            this.Page.Title = Common.PageTitle + " - " + ResourceHelper.Get("SITE_Title");

        SetSession();
    }
    private void SetSession()
    {
        if (Common.IsAdminSession)
        {
            cMenu.MenuToLoad = SiteMapMenus.Admin;
            Lang1.Visible = false;
        }
        else if (cSession.SessionActive)
        {
            cMenu.MenuToLoad = SiteMapMenus.Secure;
            Lang1.Visible = false;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Page.Header.DataBind();
        lblMoto.Text = string.Format(ResourceHelper.Get("MSG_SiteMoto"), "<a title=\"Vibz -\r\nSynonym: Unique feature\">" + ResourceHelper.Get("LBL_Vibz") + "</a>");
        imgLogo.Src = ConfigurationManager.AppSettings["BaseUrl"] + "/images/dj/logo.gif";
        cSession.Mode = Common.PageMode;
        leftAd.Text = ContentHelper.GetContent(ConfigurationManager.AppSettings["LeftAd"]);
        rightAd.Text = ContentHelper.GetContent(ConfigurationManager.AppSettings["RightAd"]);
    }
}
